package designPattern.proxyPattern.staticProxy;

/**
 * ReadBigFileProxy
 *
 * @author nanxin.chen
 * @date 2015/11/7
 */
public class ReadBigFileProxy implements ProxyInterface {
    ReadBigFile rb = null;

    @Override
    public void request() {
        if (rb == null) {
            System.out.println("when the class is in need we init it, no when the class init. ");
            rb = new ReadBigFile();
        }
        rb.request();
    }
}
